<div class="row-fluid">
<div class="span12">
<div class="pagos index">
	<h3 class="heading"><?php echo __('Pagos'); ?></h3>
	<table class="table table-striped table-bordered dTableR" id="dt_a">
    <thead>
	<tr>
			<th><?php echo $this->Paginator->sort('item'); ?></th>
			<th><?php echo $this->Paginator->sort('nombre'); ?></th>
			<th><?php echo $this->Paginator->sort('monto'); ?></th>
			<th><?php echo $this->Paginator->sort('fecha de pago'); ?></th>
			<th><?php echo $this->Paginator->sort('Plan de pago'); ?></th>
			<th class="actions"><?php echo __('Acciones'); ?></th>
	</tr>
    </thead>
    <tbody>
	<?php
	foreach ($pagos as $pago): ?>
	<tr>
		<td><?php echo h($pago['Pago']['id']); ?>&nbsp;</td>
		<td><?php echo h($pago['Pago']['nombre']); ?>&nbsp;</td>
		<td><?php echo h($pago['Pago']['monto']); ?>&nbsp;</td>
		<td>
        <?php echo h($this->Utilidades->mostrarfecha($pago['Pago']['fechapago'])); ?>&nbsp;
        </td>
		<td>
			<?php echo $this->Html->link($pago['Planespago']['nombre'], array('controller' => 'planespagos', 'action' => 'view', $pago['Planespago']['id'])); ?>
		</td>
		<td class="actions">
            <?php echo $this->Html->image("iconos/edit.png", array("title" => "Editar",'url' => array('action'=>'edit',$pago['Pago']['id'])));?>
			<?php echo $this->Html->image("iconos/elim.png", array("title" => "Eliminar",'url' => array('action'=>'delete',$pago['Pago']['id'])));?>
            <?php //echo $this->Html->link(__('Editar'), array('action' => 'edit', $pago['Pago']['id'])); ?>
			<?php //echo $this->Form->postLink(__('Eliminar'), array('action' => 'delete', $pago['Pago']['id']), null, __('estaseguro de eliminar # %s?', $pago['Pago']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
    </tbody>
	</table>
</div>
</div>
</div>
<!-- sidebar -->
<?php echo $this->element('sidebar/pagos'); ?>
<!-- fin sidebar -->
<?php //llamamos scripts tablas ?>
<?php echo $this->element('jstablas'); ?>